package com.tourismwebsite.login.query;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
@Getter
@Setter
public class UserQuery {
    @ApiModelProperty(value = "用户名", example = "kevin1")
    @NotNull(message = "用户名不可为空")
    @Size(min = 3, max = 16, message = "用户名长度必须在3字符到16字符之间")
    private String username;

    @ApiModelProperty(value = "昵称", example = "kevin1")
    @Size(min = 3, max = 16, message = "昵称长度必须在3字符到16字符之间")
    private String nickname;

    @ApiModelProperty(value = "密码", example = "123456")
    @NotNull(message = "密码不可为空")
    @Size(min = 3, max = 16, message = "密码长度必须在3字符到16字符之间")
    private String password;
    @ApiModelProperty(value = "用户名", example = "1")
    private Integer userId;
    @ApiModelProperty(value = "头像")
    private String avatar;
}
